Integrand size = 29, antiderivative size = 155 \[ \int \frac {a+b \log \left (c (d+e x)^n\right )}{(f+g x) (h+i x)} \, dx=\frac {\left (a+b \log \left (c (d+e x)^n\right )\right ) \log \left (\frac {e (f+g x)}{e f-d g}\right )}{g h-f i}-\frac {\left (a+b \log \left (c (d+e x)^n\right )\right ) \log \left (\frac {e (h+i x)}{e h-d i}\right )}{g h-f i}+\frac {b n \operatorname {PolyLog}\left (2,-\frac {g (d+e x)}{e f-d g}\right )}{g h-f i}-\frac {b n \operatorname {PolyLog}\left (2,-\frac {i (d+e x)}{e h-d i}\right )}{g h-f i} \]
[Out]
Time = 0.14 (sec) , antiderivative size = 155, normalized size of antiderivative = 1.00, number of steps used = 8, number of rules used = 4, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.138, Rules used = {2465, 2441, 2440, 2438} \[ \int \frac {a+b \log \left (c (d+e x)^n\right )}{(f+g x) (h+i x)} \, dx=\frac {\log \left (\frac {e (f+g x)}{e f-d g}\right ) \left (a+b \log \left (c (d+e x)^n\right )\right )}{g h-f i}-\frac {\log \left (\frac {e (h+i x)}{e h-d i}\right ) \left (a+b \log \left (c (d+e x)^n\right )\right )}{g h-f i}+\frac {b n \operatorname {PolyLog}\left (2,-\frac {g (d+e x)}{e f-d g}\right )}{g h-f i}-\frac {b n \operatorname {PolyLog}\left (2,-\frac {i (d+e x)}{e h-d i}\right )}{g h-f i} \]
[In]
[Out]
Rule 2438
Rule 2440
Rule 2441
Rule 2465
Rubi steps \begin{align*} \text {integral}& = \int \left (\frac {g \left (a+b \log \left (c (d+e x)^n\right )\right )}{(g h-f i) (f+g x)}-\frac {i \left (a+b \log \left (c (d+e x)^n\right )\right )}{(g h-f i) (h+i x)}\right ) \, dx \\ & = \frac {g \int \frac {a+b \log \left (c (d+e x)^n\right )}{f+g x} \, dx}{g h-f i}-\frac {i \int \frac {a+b \log \left (c (d+e x)^n\right )}{h+i x} \, dx}{g h-f i} \\ & = \frac {\left (a+b \log \left (c (d+e x)^n\right )\right ) \log \left (\frac {e (f+g x)}{e f-d g}\right )}{g h-f i}-\frac {\left (a+b \log \left (c (d+e x)^n\right )\right ) \log \left (\frac {e (h+i x)}{e h-d i}\right )}{g h-f i}-\frac {(b e n) \int \frac {\log \left (\frac {e (f+g x)}{e f-d g}\right )}{d+e x} \, dx}{g h-f i}+\frac {(b e n) \int \frac {\log \left (\frac {e (h+i x)}{e h-d i}\right )}{d+e x} \, dx}{g h-f i} \\ & = \frac {\left (a+b \log \left (c (d+e x)^n\right )\right ) \log \left (\frac {e (f+g x)}{e f-d g}\right )}{g h-f i}-\frac {\left (a+b \log \left (c (d+e x)^n\right )\right ) \log \left (\frac {e (h+i x)}{e h-d i}\right )}{g h-f i}-\frac {(b n) \text {Subst}\left (\int \frac {\log \left (1+\frac {g x}{e f-d g}\right )}{x} \, dx,x,d+e x\right )}{g h-f i}+\frac {(b n) \text {Subst}\left (\int \frac {\log \left (1+\frac {i x}{e h-d i}\right )}{x} \, dx,x,d+e x\right )}{g h-f i} \\ & = \frac {\left (a+b \log \left (c (d+e x)^n\right )\right ) \log \left (\frac {e (f+g x)}{e f-d g}\right )}{g h-f i}-\frac {\left (a+b \log \left (c (d+e x)^n\right )\right ) \log \left (\frac {e (h+i x)}{e h-d i}\right )}{g h-f i}+\frac {b n \text {Li}_2\left (-\frac {g (d+e x)}{e f-d g}\right )}{g h-f i}-\frac {b n \text {Li}_2\left (-\frac {i (d+e x)}{e h-d i}\right )}{g h-f i} \\ \end{align*}
Time = 0.05 (sec) , antiderivative size = 111, normalized size of antiderivative = 0.72 \[ \int \frac {a+b \log \left (c (d+e x)^n\right )}{(f+g x) (h+i x)} \, dx=\frac {\left (a+b \log \left (c (d+e x)^n\right )\right ) \left (\log \left (\frac {e (f+g x)}{e f-d g}\right )-\log \left (\frac {e (h+i x)}{e h-d i}\right )\right )+b n \operatorname {PolyLog}\left (2,\frac {g (d+e x)}{-e f+d g}\right )-b n \operatorname {PolyLog}\left (2,\frac {i (d+e x)}{-e h+d i}\right )}{g h-f i} \]
[In]
[Out]
Result contains higher order function than in optimal. Order 9 vs. order 4.
Time = 1.12 (sec) , antiderivative size = 378, normalized size of antiderivative = 2.44
method | result | size |
risch | \(\frac {b \ln \left (\left (e x +d \right )^{n}\right ) \ln \left (i x +h \right )}{f i -g h}-\frac {b \ln \left (\left (e x +d \right )^{n}\right ) \ln \left (g x +f \right )}{f i -g h}-\frac {b n \operatorname {dilog}\left (\frac {\left (i x +h \right ) e +d i -e h}{d i -e h}\right )}{f i -g h}-\frac {b n \ln \left (i x +h \right ) \ln \left (\frac {\left (i x +h \right ) e +d i -e h}{d i -e h}\right )}{f i -g h}+\frac {b n \operatorname {dilog}\left (\frac {\left (g x +f \right ) e +d g -e f}{d g -e f}\right )}{f i -g h}+\frac {b n \ln \left (g x +f \right ) \ln \left (\frac {\left (g x +f \right ) e +d g -e f}{d g -e f}\right )}{f i -g h}+\left (-\frac {i b \pi \,\operatorname {csgn}\left (i c \left (e x +d \right )^{n}\right ) \operatorname {csgn}\left (i c \right ) \operatorname {csgn}\left (i \left (e x +d \right )^{n}\right )}{2}+\frac {i \pi \,\operatorname {csgn}\left (i c \right ) \operatorname {csgn}\left (i c \left (e x +d \right )^{n}\right )^{2} b}{2}+\frac {i \pi \,\operatorname {csgn}\left (i \left (e x +d \right )^{n}\right ) \operatorname {csgn}\left (i c \left (e x +d \right )^{n}\right )^{2} b}{2}-\frac {i \pi \operatorname {csgn}\left (i c \left (e x +d \right )^{n}\right )^{3} b}{2}+b \ln \left (c \right )+a \right ) \left (\frac {\ln \left (i x +h \right )}{f i -g h}-\frac {\ln \left (g x +f \right )}{f i -g h}\right )\) | \(378\) |
[In]
[Out]
\[ \int \frac {a+b \log \left (c (d+e x)^n\right )}{(f+g x) (h+i x)} \, dx=\int { \frac {b \log \left ({\left (e x + d\right )}^{n} c\right ) + a}{{\left (g x + f\right )} {\left (i x + h\right )}} \,d x } \]
[In]
[Out]
\[ \int \frac {a+b \log \left (c (d+e x)^n\right )}{(f+g x) (h+i x)} \, dx=\int \frac {a + b \log {\left (c \left (d + e x\right )^{n} \right )}}{\left (f + g x\right ) \left (h + i x\right )}\, dx \]
[In]
[Out]
\[ \int \frac {a+b \log \left (c (d+e x)^n\right )}{(f+g x) (h+i x)} \, dx=\int { \frac {b \log \left ({\left (e x + d\right )}^{n} c\right ) + a}{{\left (g x + f\right )} {\left (i x + h\right )}} \,d x } \]
[In]
[Out]
\[ \int \frac {a+b \log \left (c (d+e x)^n\right )}{(f+g x) (h+i x)} \, dx=\int { \frac {b \log \left ({\left (e x + d\right )}^{n} c\right ) + a}{{\left (g x + f\right )} {\left (i x + h\right )}} \,d x } \]
[In]
[Out]
Timed out. \[ \int \frac {a+b \log \left (c (d+e x)^n\right )}{(f+g x) (h+i x)} \, dx=\int \frac {a+b\,\ln \left (c\,{\left (d+e\,x\right )}^n\right )}{\left (f+g\,x\right )\,\left (h+i\,x\right )} \,d x \]
[In]
[Out]